package com.jsoft.dao;
import com.jsoft.entity.Transfer;
import com.jsoft.entity.Voucher;

import java.util.List;

/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/20
 */
public interface TransferDao {
    /**
     * 向数据库transfer表中添加转让数据
     * @param voucher voucher列表对象
     * @param amount controller传过来的金额值
     * @param remarkString  controller传过来的备注信息
     * @param receiveEnterpriseId  controller传过来的收单企业id
     * @return 影响行数
     * @throws Exception sql异常
     */
    int insertTransfer(Voucher voucher,Double amount,String remarkString ,Integer receiveEnterpriseId) throws Exception;

    /**
     * 查询transfer表的NO列
     * @return transfer表的NO列
     * @throws Exception sql异常
     */
    List<Transfer> listTransferNo()throws Exception;

}
